Skip to content

[codex] Automate Dependabot maintenance#124

Merged
Pigbibi merged 2 commits into
mainfrom
codex/dependabot-automerge
Jun 22, 2026
Merged

[codex] Automate Dependabot maintenance#124
Pigbibi merged 2 commits into
mainfrom
codex/dependabot-automerge

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add weekly Dependabot updates for Python packages and GitHub Actions
  • ignore semver-major updates so major releases still require review
  • add a CI-gated workflow that automatically merges eligible Dependabot PRs after checks pass

Validation

  • configuration-only change; CI will validate the workflow files on this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e548018b9f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if: steps.merge_guard.outputs.should_merge == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge "${{ steps.pr.outputs.pr_number }}" --repo "${GITHUB_REPOSITORY}" --rebase --delete-branch

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Require the checked head SHA before merging

Because this workflow is driven by a successful workflow_run, a Dependabot push that lands after CI passes but before this command runs will make gh pr merge merge the PR's latest head rather than the SHA that actually passed CI. I checked the existing .github/workflows/auto_merge_codex_pr.yml workflow, which guards this by comparing headRefOid to github.event.workflow_run.head_sha and merging with --match-head-commit; the GitHub CLI manual describes that flag as requiring the PR head to match a SHA before merge. Add the same stale-run guard here so untested dependency updates cannot be auto-merged.

Useful? React with 👍 / 👎.

@Pigbibi Pigbibi merged commit 5701f3b into main Jun 22, 2026
3 checks passed
@Pigbibi Pigbibi deleted the codex/dependabot-automerge branch June 22, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant